package com.chao.wind3j.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chao.wind3j.mapper.Wind3TestDao;
import com.chao.wind3j.model.dataBaseModel.Wind3Test;
import com.chao.wind3j.service.Wind3TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

@Service
public class Wind3TestSerivceImpl implements Wind3TestService {
    @Autowired
    private Wind3TestDao wind3TestDao;

    @Override
    public List<Wind3Test> getWind3TestList(Wind3Test wind3Test) {
        return this.wind3TestDao.getList(wind3Test);
    }

    @Override
    public void insertWind3Test(Wind3Test wind3Test) {
        wind3Test.setTestId(UUID.randomUUID().toString());
        this.wind3TestDao.insert(wind3Test);
    }

    @Override
    public void updateWind3Test(Wind3Test wind3Test) {
        this.wind3TestDao.updateById(wind3Test);
    }

    @Override
    public Wind3Test getWind3TestById(String testId) {
        return this.wind3TestDao.selectById(testId);
    }
}
